const gulp = require("gulp")

const task1 = (cb) => {
  setTimeout(()=>{
    console.log("task1 is running")
    cb();
  }, 1000)
}

const task2 = (cb) => {
  setTimeout(()=>{
    console.log("task2 is running")
    cb();
  }, 1000)
}

const task3 = (cb) => {
  setTimeout(()=>{
    console.log("task3 is running")
    cb();
  }, 1000)
}

//并行
module.exports.p = gulp.parallel(task1, task2, task3);

//串行
module.exports.s = gulp.series(task1, task2, task3);
